﻿/*---------------------------------------------------------------------*/
// fileName="IConfigParameterView.cs" CompanyName="SureKAM"
// Copyright SureKAM (c). All right reserved.
/*---------------------------------------------------------------------*/

namespace SureKAM.BackUp.Notify.Presenter.ViewInterfaces
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public delegate List<Domain.Notify> ChangeSelectDirectory(string id);
    public delegate void UpdateDNMapping(string id, List<Domain.Notify> notifies);
    public delegate void Monitoring();
    public delegate List<string> GetLog();
    public delegate void MailSend();
    public interface IConfigParameterView
    {
        /// <summary>
        /// Directory选中改变事件
        /// </summary>
        ChangeSelectDirectory changeSelectDirectory { get; set; }

        /// <summary>
        /// 更新DNMapping关系
        /// </summary>
        UpdateDNMapping updateDNMapping { get; set; }

        /// <summary>
        /// 监控
        /// </summary>
        Monitoring monitoring { get; set; }

        /// <summary>
        /// 停止监控
        /// </summary>
        Monitoring stopMonitoring { get; set; }

        /// <summary>
        /// 获取日志信息
        /// </summary>
        GetLog getLog { get; set; }

        /// <summary>
        /// 发送邮件
        /// </summary>
        MailSend mailSend { get; set; }

        /// <summary>
        /// 绑定directory
        /// </summary>
        /// <param name="directories"></param>
        void DatabindDirectory(List<Domain.Directory> directories);

        /// <summary>
        /// 绑定notifies对象
        /// </summary>
        /// <param name="notifies"></param>
        void DataBindNotifys(List<Domain.Notify> notifies);
    }
}
